import HttpUtil from '@/common/HttpUtil'

class VideoDataModelApi {
  addVideo (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/device/video/add'
    return HttpUtil.postJSON(postUrl, params)
  }
  findPageVideo (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/device/video/findPage'
    return HttpUtil.postJSON(postUrl, params)
  }
  upDataViode (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/device/video/update'
    return HttpUtil.putJSON(postUrl, params)
  }
  deleteVideo (id) {
    let postUrl = process.env.SURVEY_DOMAIN + '/device/video/delete/' + id
    return HttpUtil.delete(postUrl, null)
  }
  getVideoInfo (param) {
    let getUrl = process.env.SURVEY_DOMAIN + '/device/video/getInfo/' + param
    return HttpUtil.get(getUrl, null)
  }
}

export {VideoDataModelApi}
